From: Sebastian Wick Date: Mon, 9 Oct 2023 22:13:40 +0000 (+0200) Subject: shell-app: Make recent all app windows on the target workspace X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~336 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d383f4acacabbbcfae9b0c93c95c6b38f24ea877;p=gnome-shell.git shell-app: Make recent all app windows on the target workspace meta_window_raise_and_make_recent_on_workspace now works on a target workspace instead of the active workspace. We call this before another workspace is made active so the previous behavior made the window the MRU window on the wrong workspace. If an app got activated and one window closed, the stacking and focus diverged. Related: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3315 Part-of: --- diff --git a/src/shell-app.c b/src/shell-app.c index c164e4eeb..f714ad587 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -458,8 +458,8 @@ shell_app_activate_window (ShellApp *app, { MetaWindow *other_window = iter->data; - if (other_window != window && meta_window_get_workspace (other_window) == workspace) - meta_window_raise_and_make_recent (other_window); + if (other_window != window) + meta_window_raise_and_make_recent_on_workspace (other_window, workspace); } g_slist_free (windows_reversed);